package com.eheart.demo_jdk21.feature;

import java.util.ArrayList;
import java.util.List;

import static java.sql.DriverManager.println;


public class FeatureTest {
    /*public static void main(String[] args) {
        List<Integer> integers = new ArrayList<>(List.of(1, 2, 3));
        List<Integer> reversed = integers.reversed();
        reversed.forEach(System.out::println);
        Integer first = integers.getFirst();
        Integer last = integers.getLast();
        System.out.println(first);
        System.out.println(last);
        System.out.println("integers = " + integers);
        reversed.add(0, 4);
        reversed.removeFirst();
        reversed.addLast(5);
        reversed.forEach(System.out::println);
    }*/
}


